<template>
  <keep-alive>
    <component :is="who" :obj="obj"></component>
  </keep-alive>
</template>
<script>
import manageTable from "./manageTable.vue";
import manageAdd from "./manageAdd.vue";
import manageDetail from "./manageDetail.vue";
import manageDetail_1 from "./manageDetail_1.vue";
import manageDetail_2 from "./manageDetail_2.vue";
export default {
  name: "accessibleManage",
  components: {
    manageTable,
    manageAdd,
    manageDetail,
    manageDetail_1,
    manageDetail_2
  },
  data() {
    return {
      who: "manageTable", //默认展示表格
      obj: ""
    };
  },
  methods: {
    show(who, obj) {
      this.obj = obj;
      this.who = who;
    }
  }
};
</script>
